from django.db import models

# Create your models here.

# 外卖骑手表
class SendModel(models.Model):
    nickname = models.CharField(verbose_name="名称",max_length=20)
    avatar_url = models.CharField(verbose_name="骑手头像", max_length=500, null=True)
    mobile = models.CharField(verbose_name="手机号", max_length=11)
    password = models.CharField(verbose_name="密码", max_length=256)
    is_apply = models.BooleanField(verbose_name="申请是否通过", default=False)
    date_joined = models.DateTimeField(verbose_name="注册时间", auto_now_add=True)
    is_delete = models.BooleanField(verbose_name="是否删除", default=False)
    class Meta():
        db_table="send_tb"
        verbose_name = "骑手表"
        verbose_name_plural = verbose_name
    def __str__(self):
        return self.nickname